<?php

namespace backend\controllers;

use common\formatter\UserFormatter;
use backend\components\BaseController;

class TestController extends BaseController
{

    /**
     * Displays homepage.
     *
     * @return array
     */
    public function actionSay()
    {
        $info = [
            'id' => 1,
            'screen_name' => '姓名',
            'avatar' => 'http://www.baidu.com/',
            'gender' => 2,
            'created_at' => '1520032424',
            'is_vip' => 1,
            'total_amount' => 1000,
            'tags' => [
                '技术宅', '歌唱家'
            ],

        ];
        $info = UserFormatter::info($info);
        $response = $this->_success($info);
        return $response;
    }

}
